package com.manager.entity;

import lombok.Data;/*导入，或者@lombok.Data？*/

import java.util.Date;

@Data
public class Petshow {
    private Integer petid;
    private String storeid;
    private Petdetails petdetails;/*id+所有信息。*/
    private Petrelease petrelease;/*id,storeid,time*/
    private Pettrading pettrading;/*id,flag,money*/

    /*由于Mybatis是根据get和set来的，所以不可以使用这个来搞内部类。*/

    /*petrelease.petid, storeid, releasetime,flag, money, petname, petphotopath, gender, age, health, species*/


    public Petshow(Integer petid, String storeid, String petname, String petphotopath, Boolean gender, Integer age, String health, String species, Date releasetime , Boolean flag, Integer money) {
        this.petid = petid;
        this.storeid = storeid;

        this.petdetails = new Petdetails(petid, petname, petphotopath, gender, age, health, species);
        this.petrelease = new Petrelease(petid, storeid, releasetime);
        this.pettrading = new Pettrading(petid, flag, money);

    }

    public Petshow() {
    }
}